package com.shph.validation.rule.impl;

import com.shph.validation.rule.IRule;

import java.util.Map;

/**
 * 数组非空校验实现类
 */
public class ArrayEmptyRule implements IRule<Object[]> {
    @Override
    public boolean test(Object[] value, String refValue) {
        if (value == null || value.length < 1) {
            return true;
        }
        return false;
    }
}
